<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
		<link href="css/index.css" rel="stylesheet"/>
		<style type="text/css">
			.mui-scroll-wrapper, .mui-slider{
				overflow: visible;
			}
			.mui-scroll, .mui-slider, .mui-slider .mui-slider-group, .mui-slider a{
				height: 100%;
			}
			.mui-control-content {
				background-color: white;
				min-height: 215px;
			}
			.mui-control-content .mui-loading {
				margin-top: 50px;
			}
			.mui-btn {
				margin-left: 10px;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav myHeader" style="box-shadow: none;">
	        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white;"><span style="font-size: 15px;">我</span></a>
	        <h1 class="mui-title myTitle">表情商店</h1>
	    </header>
		<div class="mui-content">
			<div id="slider" class="mui-slider">
				<div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
					<a class="mui-control-item" href="#item1mobile">
						精选表情
					</a>
					<a class="mui-control-item" href="#item2mobile">
						更多表情
					</a>
				</div>
				<div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-6"></div>
				<div class="mui-slider-group">
					<div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
						<div id="scroll1" class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<div id="slider" class="mui-slider sliders">
									<div class="mui-slider-group mui-slider-loop">
									<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
									<div class="mui-slider-item mui-slider-item-duplicate">
										<a href="#">
											<img src="img/2.jpg">
										</a>
									</div>
									<!-- 第一张 -->
									<div class="mui-slider-item">
										<a href="#">
											<img src="img/1.jpg">
										</a>
									</div>
									<!-- 第二张 -->
									<div class="mui-slider-item">
										<a href="#">
											<img src="img/3.jpg">
										</a>
									</div>
									<!-- 第三张 -->
									<div class="mui-slider-item">
										<a href="#">
											<img src="img/4.jpg">
										</a>
									</div>
									<!-- 第四张 -->
									<div class="mui-slider-item">
										<a href="#">
											<img src="img/2.jpg">
										</a>
									</div>
									<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
									<div class="mui-slider-item mui-slider-item-duplicate">
										<a href="#">
											<img src="img/1.jpg">
										</a>
									</div>
									</div>
									<div class="mui-slider-indicator">
										<div class="mui-indicator mui-active"></div>
										<div class="mui-indicator"></div>
										<div class="mui-indicator"></div>
										<div class="mui-indicator"></div>
									</div>
								</div>
								<ul class="mui-table-view">
					    	        <li class="mui-table-view-cell">
					    	            <a class="mui-navigate-right">
					    	                	推荐表情					    	                	
					    	            </a>
					    	            <span class="mui-badge  mui-badge-purple">1</span>
					    	        </li>
					    	    </ul>
					    	    <ul class="mui-table-view mui-table-view-chevron myContent">
									<li class="mui-table-view-cell mui-media" title="么么2">
										<a href="javascript:;">
											<img class="mui-media-object mui-pull-left" src="img/1.jpg">
											<div class="mui-media-body">
												么么2
												<p class="mui-ellipsis">哥斯拉遇到萌妹子</p>
											</div>
											<button type="button" class="mui-btn mui-btn-danger">下载</button>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media" title="羊宝宝">
										<a href="javascript:;">
											<img class="mui-media-object mui-pull-left" src="img/2.jpg">
											<div class="mui-media-body">
												羊宝宝
												<p class="mui-ellipsis">温暖可爱的羊宝宝.</p>
											</div>
											<button type="button" class="mui-btn mui-btn-danger">下载</button>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media" title="动物园">
										<a href="javascript:;">
											<img class="mui-media-object mui-pull-left" src="img/3.jpg">
											<div class="mui-media-body">
												动物园
												<p class="mui-ellipsis">寻找团子的饲养员.</p>
											</div>
											<button type="button" class="mui-btn mui-btn-danger">下载</button>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media" title="小王">
										<a href="javascript:;">
											<img class="mui-media-object mui-pull-left" src="img/4.jpg">
											<div class="mui-media-body">
												小王
												<p class="mui-ellipsis">彻彻底底.</p>
											</div>
											<button type="button" class="mui-btn mui-btn-danger">下载</button>
										</a>
									</li>
								</ul>
								<ul class="mui-table-view">
					    	        <li class="mui-table-view-cell">
					    	            <a class="mui-navigate-right">
					    	                	更多精选				    	                	
					    	            </a>
					    	            <span class="mui-badge  mui-badge-purple">1</span>
					    	        </li>
					    	    </ul>
					    	    <ul class="mui-table-view mui-table-view-chevron myContent">
									<li class="mui-table-view-cell mui-media" title="么么2">
										<a href="javascript:;">
											<img class="mui-media-object mui-pull-left" src="img/5.jpg">
											<div class="mui-media-body">
												么么2
												<p class="mui-ellipsis">哥斯拉遇到萌妹子</p>
											</div>
											<button type="button" class="mui-btn mui-btn-danger">下载</button>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media" title="羊宝宝">
										<a href="javascript:;">
											<img class="mui-media-object mui-pull-left" src="img/6.jpg">
											<div class="mui-media-body">
												羊宝宝
												<p class="mui-ellipsis">温暖可爱的羊宝宝.</p>
											</div>
											<button type="button" class="mui-btn mui-btn-danger">下载</button>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media" title="动物园">
										<a href="javascript:;">
											<img class="mui-media-object mui-pull-left" src="img/7.jpg">
											<div class="mui-media-body">
												动物园
												<p class="mui-ellipsis">寻找团子的饲养员.</p>
											</div>
											<button type="button" class="mui-btn mui-btn-danger">下载</button>
										</a>
									</li>
									<li class="mui-table-view-cell mui-media" title="小王">
										<a href="javascript:;">
											<img class="mui-media-object mui-pull-left" src="img/8.jpg">
											<div class="mui-media-body">
												小王
												<p class="mui-ellipsis">彻彻底底.</p>
											</div>
											<button type="button" class="mui-btn mui-btn-danger">下载</button>
										</a>
									</li>
								</ul>
							</div>		
							
						</div>
						
					</div>
					<div id="item2mobile" class="mui-slider-item mui-control-content">
						<div id="scroll2" class="mui-scroll-wrapper">
							<div class="mui-scroll">
								<div class="mui-loading">
									<div class="mui-spinner">
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			
		</div>
		<script src="js/mui.min.js"></script>
		<script src="js/jquery.min.js"></script>
		<script type="text/javascript">
			mui.init();
			var gallery = mui(".sliders");
			gallery.slider({
				interval:1000
			});			
			mui.init({
				swipeBack: false
			});
			(function($) {
				$('.mui-scroll-wrapper').scroll({
					indicators: true //是否显示滚动条
				});
				var html2 = '<ul class="mui-table-view"><li class="mui-table-view-cell">第二个选项卡子项-1</li><li class="mui-table-view-cell">第二个选项卡子项-2</li><li class="mui-table-view-cell">第二个选项卡子项-3</li><li class="mui-table-view-cell">第二个选项卡子项-4</li><li class="mui-table-view-cell">第二个选项卡子项-5</li></ul>';
				var item2 = document.getElementById('item2mobile');
				document.getElementById('slider').addEventListener('slide', function(e) {
					if (e.detail.slideNumber === 1) {
						if (item2.querySelector('.mui-loading')) {
							setTimeout(function() {
								item2.querySelector('.mui-scroll').innerHTML = html2;
							}, 500);
						}
					}
				});
			})(mui);
			$(".mui-btn").on("tap", function(){
				mui.toast("没有资源，去隔壁下吧！")
			})
		</script>
	</body>

</html>